<?php

/**
 * Description of PersonPersonClass
 *
 * @author adhamhelal
 */
class ComSchoolInfoPanel extends Qpanel {
	protected $mctComSchool;
        //Controls
        public $lblId;
        protected $lblComSchoolCreateBy;
	protected $lblComSchoolCreateDate;
	protected $lblComSchoolUpdateBy;
	protected $lblComSchoolUpdateDate;
            //Template
        protected $strTemplate;

       public function __construct($objParentObject, $mctComSchool, $strControlId = null) {
                // Call the Parent
                try {
                        parent::__construct($objParentObject, $strControlId);
                } catch (QCallerException $objExc) {
                        $objExc->IncrementOffset();
                        throw $objExc;
                }

                // Setup Template
                $this->strTemplate = __DOCROOT__.__PERSON__ .  '/tpl/qpanel.tpl.php';
                // Set the Person Meta Conrol
                 $this->mctComSchool=$mctComSchool;

                // Call MetaControl's methods to create qcontrols data fields
                $this->lblId = $this->mctComSchool->lblId_Create();
                $this->lblId->Name = QApplication::Translate("Communication Id");
                $this->lblId->SetParentControl($this);

                $objComSchool = $this->mctComSchool->__get('ComSchool');
               
                $this->lblComSchoolCreateBy = $this->mctComSchool->lblCreateBy_Create();
                $this->lblComSchoolCreateBy->Name = QApplication::Translate("ComSchool: Created By");
                $this->lblComSchoolCreateBy->SetParentControl($this);

                $this->lblComSchoolCreateDate = $this->mctComSchool->lblCreateDate_Create(null,QDateTime::FormatDisplayDateTimeFull);
                $this->lblComSchoolCreateDate->Name = QApplication::Translate("ComSchool: Created Date");
                $this->lblComSchoolCreateDate->SetParentControl($this);

                $this->lblComSchoolUpdateBy = $this->mctComSchool->lblUpdateBy_Create();
                $this->lblComSchoolUpdateBy->Name = QApplication::Translate("ComSchool: Update By");
                $this->lblComSchoolUpdateBy->SetParentControl($this);

                $this->lblComSchoolUpdateDate = $this->mctComSchool->lblUpdateDate_Create(null,QDateTime::FormatDisplayDateTimeFull );
                $this->lblComSchoolUpdateDate->Name = QApplication::Translate("ComSchool: Update Date");
                $this->lblComSchoolUpdateDate->SetParentControl($this);


    }


}
?>


